package com.visionvera.retrofitservice.net;

import com.visionvera.retrofitservice.net.BaseEntity;

import io.reactivex.functions.Function;

/**
 * Created by dongyukun on 2017/11/7.
 * @param <T>
 */
public class ResponseFunc<T> implements Function<BaseEntity<T>, T> {
    @Override
    public T apply(BaseEntity<T> tBaseEntity) throws Exception {
        //TODO need to determine the error code
        return tBaseEntity.getData();
    }
}
